package com.suncaper.han_yi_system.pojo.dto;

import lombok.Data;

@Data
public class BasePageDto {

    private Integer page = 1;

    private Integer limit = 10;

    private Integer startIndex;

    public Integer getStartIndex() {
        this.startIndex = (page - 1) * limit;
        return this.startIndex;
    }
}
